import request from '../../utils/request'

// 获取总计
export function getTotalData(data) {
  return request({
    url: '/api1?data=' + data,
    method: 'get'
  })
}

// 获取月度环比
export function getChainData(data) {
  return request({
    url: '/api2?data=' + data,
    method: 'get'
  })
}

// 获取历史记录
export function getHistoryData(data) {
  return request({
    url: '/api3?data_start=' + data[0] + '&data_end=' + data[1],
    method: 'get'
  })
}

// 处理视频
export function getDealVideo(data) {
  return request({
    url: '/api4?path=' + data,
    method: 'get'
  })
}

// 总貌图
export function getOverviewMap(data) {
  return request({
    url: '/api5?data=' + data,
    method: 'get'
  })
}
